<?php
class indexAction extends frontAction{
    public function execute(){
        $dao = new DaoVideo();
        list($videos,$page) = $dao->getListPage("1 order by sortID",9);
		
		$currentID = service_menu::getCurrent(service_type::VIDEO);
		$cache = new Cache_request();
		$cache->set("currentID",$currentID);
		$this->assign("title",service_menu::getNameById($currentID));
		$this->assign("videos",$videos);
		$this->assign("page",$page);
    }
}
?>
